//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//	knl.h
//  	Definitions of the kernel 
//	history -- 01/14/03' created 
//
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


typedef struct K_MSG
{
	USHORT wMsgType;
	USHORT wInstance;
	void *pMsgPtr;
} K_MSG, *pK_MSG;

typedef void (* K_Trans_Proc)(PWB32_ADAPTER, pK_MSG);

typedef struct K_TRANS
{
	USHORT			wMsg;
	K_Trans_Proc	rActionFunction;
} K_TRANS;

#define KNLMSG_RESET					(250)
#define K_NULL_MSG                      (USHORT) 0
#define K_IDLE_STATE					(USHORT) 0
#define K_NULL_STATE                    (USHORT) (~0)
#define K_NULL_ROUTINE                  (K_Trans_Proc) 0


void vKNL_StateMachine(PWB32_ADAPTER, const K_TRANS** psStateMachineTable,
                       USHORT wStateData, pK_MSG psMsg);
void vProc_Null(PWB32_ADAPTER, pK_MSG);
